/**
 * User.java
 *
 * Created on 21 Jul 2010 15:07:58
 */
package org.blueoxygen.rest.security;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.blueoxygen.cimande.DefaultPersistence;
import org.blueoxygen.rest.geneology.Person;

/**
 * @author Dian Aditya
 *
 */
@Entity
@Table
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
public class User extends DefaultPersistence {

	private String username;
	private String password;
	private String secret;
	private Person detail;

	@Column
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column
	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}

	@OneToOne
	public Person getDetail() {
		return detail;
	}

	public void setDetail(Person detail) {
		this.detail = detail;
	}

}
